package com.yizhu.zczy.address.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yizhu.zczy.address.entity.RegionEntity;
import com.yizhu.zczy.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 地区表
 *
 * @author guoyz
 * @email guoyz@mail.com
 * @date 2021-06-24 17:05:09
 */
public interface RegionService extends IService<RegionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据父查询子
     * @param pid
     * @return
     */
    List<RegionEntity> queryByParentId(Integer pid);

    /**
     * 获取所有城市，封装子城市
     * @return
     */
    List<RegionEntity> getAllCity();

}

